/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */
#ifndef __WOW_UTIL_H__
#define __WOW_UTIL_H__

#include "WOWCommon.h"
#include "OgreStringVector.h"

namespace PQGame
{
	/*Judge from m2 file path
		*/
	inline WowModelType getWOWModelTypeByPath(std::string path)
	{
		Ogre::StringVector vec= Ogre::StringUtil::split(path,"/");
		if(vec[0]=="character"){
			return WOW_MODEL_TYPE_CHARACTER;
		}
		return WOW_MODLE_TYPE_NORMAL;
	}

	inline std::string getCharacterRaceNameByPath(std::string path)
	{
		Ogre::StringVector vec= Ogre::StringUtil::split(path,"/");
		if(vec.size()>0){
			return vec[1];
		}
		return "";
	}
}
#endif
